package com.yuxi.Dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.yuxi.Entity.InformationSort;
import com.yuxi.Entity.TaskCompletion;


/**
 *任务完成情况等级操作接口
 * @author hunter
 * @version 1.0
 * 2016/07/18
 */

@Repository
public interface TaskCompletionDao {
	/**
	 * 通过tCompletionId获取TaskCompletion
	 * @param 	tCompletionId
	 * @return TaskCompletion 
	 * */
	public TaskCompletion getCompletion(Integer tCompletionId);
	/**
	 * 添加一个tCompletion  并返回添加的实体类
	 * @param 	tCompletionId
	 * @return TaskCompletion 
	 * */
	public TaskCompletion addCompletion(TaskCompletion tCompletion);
	/**
	 * 删除一个tCompletion  并返回删除的实体类
	 * @param 	tCompletion TaskCompletion实体类
	 * @return TaskCompletion 
	 * */
	public void deletetCompletion(TaskCompletion tCompletion);
	/**
	 * 修改一个tCompletion  并返回修改的实体类
	 * @param  tCompletion  TaskCompletion实体类
	 * @return TaskCompletion 
	 * */
	public void modifly(TaskCompletion tCompletion);
	/**
	 * 获取所有任务完成情况等级
	 * @param 	
	 * @return List<InformationSort> 
	 * */
	public List<TaskCompletion> getAllTaskCompletion();
}
